package com.smackkitty.haikustudio;

import android.app.TabActivity;
import android.content.Intent;
import android.os.Bundle;
import android.widget.TabHost;
import android.widget.TabHost.TabSpec;

public class Write_Read_Tabhost extends TabActivity {
	private TabHost tabHost;
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.write_read_tabhost);
	
		tabHost = (TabHost)findViewById(android.R.id.tabhost);
		tabHost.clearAllTabs();
		
		HaikuTabs();
	}
	
	private void HaikuTabs(){
		TabSpec firstTabSpec = tabHost.newTabSpec("haikuWrite");
		TabSpec secondTabSpec = tabHost.newTabSpec("haikuRead");

		firstTabSpec.setIndicator("Write Haiku").setContent(new Intent(this, Write_Haiku.class));
		secondTabSpec.setIndicator("Read Haiku").setContent(new Intent(this, Read_Haiku.class));

		tabHost.addTab(firstTabSpec);
		tabHost.addTab(secondTabSpec);
	}
}
